package com.lin.java.tool.common.enums;

/**
 * 作者：lin
 * 功能：
 * 时间：2023/5/5 10:42
 */
public enum RespCode implements EnumCode<Integer> {
    SUCCESS(200, "操作成功"),
    FAIL(500, "操作失败"),
    PARAMS(10000, "参数异常"),
    ;
    int code;
    String msg;

    RespCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getDesc() {
        return this.msg;
    }
}
